Chris Pollett > Old Classes >
CS174

( Print View )

Student Corner:
  [Grades Sec1]
  [Grades Sec2]

  [Submit Sec1]
  [Submit Sec2]

  [Class Sign Up Sec1]
  [Class Sign Up Sec2]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Hw6]

Practice Exams:
  [Mid1]  [Final]

                           












CS174 Fall 2008Practice Midterm 1

To study for the midterm I would suggest you: (1) Know how to do (by heart) all the practice problems. (2) Go over your notes at least three times. Second and third time try to see how much you can remember from the first time. (3) Go over the homework problems. (4) Try to create your own problems similar to the ones I have given and solve them. (5) Skim the relevant sections from the book. (6) If you want to study in groups, at this point you are ready to quiz each other. The practice midterm is below. Here are some facts about the actual midterm: (a) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (b) You should bring photo ID. (c) There will be more than one version of the test. Each version will be of comparable difficulty. (d) One problem (less typos) on the actual test will be from the practice test. (e) One problem on the actual test will be about one of my HW solutions.

1. Briefly explain the principal differences between HTTP/1.0 and HTTP/1.1. Where would you use each?

2. What does the http-equiv attribute of a meta tag tell the browser to do? Explain how to use meta tags to prevent robots from indexing a page

3. Pick your favorite Mondrian painting. Give the html to make a table that looks the same. Make sure it has an appropriate summary tag.

4. Give examples of the code needed to do the following: (a) include an external stylesheet with a link tag, (b) to hide a div tag but still have the space it would occupy render, (c) set the background image of a tag using styles

5. Briefly explain what the box model for CSS is and its major components.

6. Give a php script which when no data is getted to it will display a form with a textfield and a submit button. When this form is submitted it returns a page with a h1 tag that has the contents of the submitted textfield within it.

7. Write a PHP script which implements, using mysql, a counter for the number of page requests that have been made for it.

8. Briefly explain how the capture and bubbling phase of DOM 2 events work.

9. Explain how you could check using Javascript if the foo field of a form had the text 'bar' in it before the form is submitted, then only submit if it does; otherwise, open an alert with an error.

10. Imagine you wanted to make slides using HTML. You would like it that when you click the screen the next slide is advanced to without doing a page reload. Assume your HTML file has one div tag pair per slide. Explain how this effect could be achieved using Javascript and CSS.